/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package samoloty.controler;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import samoloty.data.*;
import samoloty.view.MainPanel;
import samoloty.view.MainWindow;
import samoloty.view.MyButton;
import samoloty.view.SecondPanel;

/**
 *
 * @author borysfan
 */
public class SecondPanelControler {

    private SecondPanel panel;
    private Controler controler;


    public SecondPanelControler(Controler c){
        controler = c;
        initPanel();
    }

    public SecondPanel getPanel(){
        return panel;
    }

    private void initPanel() {
        panel = new SecondPanel();


    }

    public void setUpWindow(){
        MainWindow window = controler.getView();
        window.setAllBtnStyle(MyButton.ACTIVE_BUTTON);
        window.setLeftPanelVisible(false);
        window.setDisplayVisible(false);
        window.setPrintVisible(false);
        window.setSaveVisible(false);
    }

}
